package com.naizhuai.ui.entity.mainbusiness;

import java.io.Serializable;

/**
 * 请求的数据
 * Created by code_han on 2018/4/11.
 */

public class TargetAddNewBean implements Serializable {

    public static final String NAME_KEY="name";
    public static final String DETAILS_KEY="details";
    public static final String TEAM_TYPE_KEY="teamType";
    public static final String TEAM_ID_KEY="teamId";
    public static final String COMPANY_ID_KEY="companyId";
    public static final String BUDGET_KEY="budget";
    public static final String LEADER_UID_KEY="leaderUid";
    public static final String LIMIT_DEPARTMENT_KEY="limitDepartmentList";
    public static final String LIMIT_USER_KEY="limitUserList";

    //目标名称
    private KeyAndValue name;
    //立项原因
    private KeyAndValue details;
    //目标的类别（公司2？部门3？个人）
    private KeyAndValue teamType;
    //所属的部门的id
    private KeyAndValue teamId;
    //所属的公司的id
    private KeyAndValue companyId;
    //模拟预算总额
    private KeyAndValue budget;
    //负责人的id
    private KeyAndValue leaderUid;
    //参与范围的部门的id的数组的json
    private KeyAndValue limitDepartmentList;
    //参与范围的人员的id的数组的json
    private KeyAndValue limitUserList;

    public KeyAndValue getName() {
        return name;
    }

    public void setName(String name) {
        this.name = new KeyAndValue(NAME_KEY,name);
    }

    public KeyAndValue getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = new KeyAndValue(DETAILS_KEY,details);
    }

    public KeyAndValue getTeamType() {
        return teamType;
    }

    public void setTeamType(String teamType) {
        this.teamType = new KeyAndValue(TEAM_TYPE_KEY,teamType);
    }

    public KeyAndValue getTeamId() {
        return teamId;
    }

    public void setTeamId(String teamId) {
        this.teamId = new KeyAndValue(TEAM_ID_KEY,teamId);
    }

    public KeyAndValue getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = new KeyAndValue(COMPANY_ID_KEY,companyId);
    }

    public KeyAndValue getBudget() {
        return budget;
    }

    public void setBudget(String budget) {
        this.budget = new KeyAndValue(BUDGET_KEY,budget);
    }

    public KeyAndValue getLeaderUid() {
        return leaderUid;
    }

    public void setLeaderUid(String leaderUid) {
        this.leaderUid = new KeyAndValue(LEADER_UID_KEY,leaderUid);
    }

    public KeyAndValue getLimitDepartmentList() {
        return limitDepartmentList;
    }

    public void setLimitDepartmentList(String limitDepartmentList) {
        this.limitDepartmentList = new KeyAndValue(LIMIT_DEPARTMENT_KEY,limitDepartmentList);
    }

    public KeyAndValue getLimitUserList() {
        return limitUserList;
    }

    public void setLimitUserList(String limitUserList) {
        this.limitUserList = new KeyAndValue(LIMIT_USER_KEY,limitUserList);
    }

    static class KeyAndValue implements Serializable{
        private String key;
        private String value;

        KeyAndValue(String key, String value) {
            this.key = key;
            this.value = value;
        }

        public String getKey() {
            return key;
        }

        public void setKey(String key) {
            this.key = key;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }
    }
}
